projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce9ddf3
)
trying to fix unimplemented flock under linux
author
z1mvader
<z1mvader@protonmail.com>
Tue, 7 Feb 2017 22:55:46 +0000
(17:55 -0500)
committer
z1mvader
<z1mvader@protonmail.com>
Tue, 7 Feb 2017 22:55:46 +0000
(17:55 -0500)
src/cargo/util/flock.rs
patch
|
blob
|
history
diff --git
a/src/cargo/util/flock.rs
b/src/cargo/util/flock.rs
index a20540d06c3ab2c47f866e8243bda8b75db7a7cf..64151bff5d5ff3bb6cd96c9606f111d70ac1f0b6 100644
(file)
--- a/
src/cargo/util/flock.rs
+++ b/
src/cargo/util/flock.rs
@@
-276,6
+276,9
@@
fn acquire(config: &Config,
#[cfg(target_os = "macos")]
Err(ref e) if e.raw_os_error() == Some(libc::ENOTSUP) => return Ok(()),
+ #[cfg(target_os = "linux")]
+ Err(ref e) if e.raw_os_error() == Some(libc::ENOSYS) => return Ok(()),
+
Err(e) => {
if e.raw_os_error() != lock_contended_error().raw_os_error() {
return Err(human(e)).chain_error(|| {